package cn.sxt.users.pojo;

import java.util.Date;

public class Role {
	private Integer id;
	private String name;
	private String content;
	private Byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	private String statusStr;
	
	public String getStatusStr() {
		POJOEnum[] pojoEnums=POJOEnum.values();
		for (int i = 0; i < pojoEnums.length; i++) {
			POJOEnum pojoEnum=pojoEnums[i];
			if(pojoEnum.toString().startsWith("STATUS_")
					&& pojoEnum.getStatus()==this.getStatus()){
				this.statusStr=pojoEnum.getName();
			}
		}
		return statusStr;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Byte getStatus() {
		return status;
	}
	public void setStatus(Byte status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
}
